package com.soundai.skill.helloworld;

import com.amazon.ask.Skill;
import com.amazon.ask.Skills;
import com.amazon.ask.servlet.SkillServlet;
import com.soundai.skill.helloworld.handlers.*;
import com.soundai.skill.helloworld.interceptor.HelloWorldRequestInterceptor;
import com.soundai.skill.helloworld.interceptor.HelloWorldResponseInterceptor;


import javax.servlet.annotation.WebServlet;

@WebServlet("/v1/helloworld")
public class HelloWorldSkillServlet extends SkillServlet {

    public HelloWorldSkillServlet() {

        super(getSkill());
    }

    private static Skill getSkill() {
        return Skills.standard()
                .addRequestHandlers(
                        //new CancelandStopIntentHandler(),
                        //new HelloWorldIntentHandler(),
                        //new HelpIntentHandler(),
                        //new LaunchRequestHandler(),
                        //new SessionEndedRequestHandler(),
                        //new CanfulfillIntentRequestHandler(),
                        new CommonHandler(),
                        new ChatIntentHandler()
                )
               // .addRequestInterceptor(new CanfulfillIntentRequestInterceptor())
               // .addResponseInterceptor(new CanfulfillIntentResponseInterceptor())
                //.addRequestInterceptor(new HelloWorldRequestInterceptor())
              // .addResponseInterceptor(new HelloWorldResponseInterceptor())

                // Add your skill id below
                .withSkillId("2df5d999a1f405aa519ac1d366401ab4")
                .build();
    }

}
